﻿using EmailManagementSoftware.Model.DAO;
using EmailManagementSoftware.Presenter;
using System;
using System.Windows.Forms;

namespace EmailManagementSoftware
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            MainWindowView mainWindow = new MainWindowView();
            AppPresenter appPresenter = new AppPresenter(mainWindow, new AppDAO());
            mainWindow._AppPresenter = appPresenter;
            Application.Run(mainWindow);
        }
    }
}
